﻿using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Hvam.SharePoint.Search.Tests.Internal.Query.Site
{
    [TestClass]
    public class StringComparerTests
    {
        [TestMethod]
        public void CaseInsensitiveDictionaryTest()
        {
            // Arrange
            var dictionary =
                new Dictionary<string, int>(StringComparer.OrdinalIgnoreCase)
                    {
                        {"ID", 0}
                    };
            // Act
            var result = dictionary.ContainsKey("id");

            // Assert
            Assert.IsTrue(result);
        }
    }
}
